#pragma once

#define VERTICAL 240
#define HORIZONTAL 352
#define SCALE 2

// Initiates DirectX

HRESULT D3DInit(HWND hWnd);

// Clears DirectX

HRESULT ClearD3D();

HRESULT Render(HWND hWnd);

HRESULT GetColors (LPDIRECT3DSURFACE9 surf, MBlock* Matrix);

HRESULT SetColors (LPDIRECT3DSURFACE9 surf, MBlock* Matrix);

HRESULT WriteText (LPCWSTR text, BitmapFont* bitmapfont, LPDIRECT3DSURFACE9 surf, POINT *place, int iOffset);

HRESULT SetTimerText(DWORD Timer, WCHAR * szTime);

HRESULT TransToLineMatrix(LPDIRECT3DSURFACE9 surf, DWORD Width, DWORD Height, MBlock* Matrix, RECT *src, RECT *dest);